<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>长龙航空</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/style.css?v=20171214">
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
</head>
<body class="MainBodyBg bodyFontSize">
<div class="container-full">
    <div class="AdverTitle"><img src="img/holiday.png" class="img-responsive" /><p class="FontSize12">长龙假期</p></div>
</div>
<div class="container">
    <div class="row AdverImgBox">
        <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4"><img src="img/hotel.png" class="img-responsive"/></div>
        <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4"><img src="img/hotel.png" class="img-responsive"/></div>
        <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4"><img src="img/hotel.png" class="img-responsive"/></div>
    </div>
</div>
<div class="container">
    <div class="AdverTitle nopadLR"><img src="img/ad.png" class="img-responsive" /><p class="FontSize12">长龙假期</p><p class="pull-right text-right FontSize12">了解详情&nbsp;&nbsp;&gt;</p></div>
    <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 AdverImg2"><img src="img/cj.png" class="img-responsive"/></div>
    </div>
</div>
<script>
    $(function () {
        var postUrl = {
            Type: "Function",
            Content: {url: location.href},
            To: {
                Target: "main",
                Func: "setFrameUrl",
                Serial: ""
            },
            From: {
                Source: "",
                Func: "",
                Serial: ""
            }
        };
        window.parent.postMessage(postUrl, '*');
        $("#test1").click(function () {
            var postdata = {
                Type: "Function",
                Content: {data: 1},
                To: {
                    Target: "main",
                    Func: "HandleDemo",
                    Serial: ""
                },
                From: {
                    Source: "",
                    Func: "",
                    Serial: ""
                }
            };

            window.parent.postMessage(postdata, '*');
        })
    });
    /*window.addEventListener('message', function (e) {
        if (e.source != window.parent) return;
        alert(e.data);
    }, false);*/
</script>
</body>
</html>
